export const isLogin = () => !!localStorage.getItem('token')
export const getToken = () => localStorage.getItem('token')
export const getRole = () => localStorage.getItem('role')

export const removeUserInfomation = () => {
  localStorage.removeItem('token')
  localStorage.removeItem('role')
  localStorage.removeItem('userInfo')
  localStorage.removeItem('authRoutes')
  localStorage.removeItem('authMenus')
}
